home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / include / commentP.h < prev    next >
C/C++ Source or Header  |  1993-01-20  |  1KB  |  45 lines

  1. /* Copyright (c) 1992 The Geometry Center; University of Minnesota
  2.    1300 South Second Street;  Minneapolis, MN  55454, USA;
  3.    
  4. This file is part of geomview/OOGL. geomview/OOGL is free software;
  5. you can redistribute it and/or modify it only under the terms given in
  6. the file COPYING, which you should have received along with this file.
  7. This and other related software may be obtained via anonymous ftp from
  8. geom.umn.edu; email: software@geom.umn.edu. */
  9.  
  10. /*
  11.  * Authors: Charlie Gunn, Stuart Levy, Tamara Munzner, Mark Phillips,
  12.  * Nathaniel Thurston
  13.  */
  14.  
  15. #ifndef COMMENTPDEFS
  16. #define COMMENTPDEFS
  17.  
  18. /*
  19.  * Private definitions for Comments.
  20.  */
  21.  
  22. #include "comment.h"
  23. #include "bboxP.h"    /* includes geomclass.h */
  24.  
  25. #define COMMENTMAGIC    GeomMagic('c', 1)
  26.  
  27. struct Comment {
  28.     GEOMFIELDS
  29.     char    *name;
  30.     char    *type;
  31.     int        length;        /* 0 if data is ASCII */
  32.     char    *data;
  33. };
  34.  
  35. extern GeomClass *CommentClass;        /* Public read-only; valid only
  36.                      * after first call to CommentMethods()
  37.                      */
  38.  
  39. extern Comment *CommentCreate( Comment *exist, GeomClass *Class, va_list attrs );
  40. extern void  CommentDelete( Comment * );
  41. extern Comment *CommentCopy( Comment * );
  42. extern Comment *CommentDice( Comment *, int nu, int nv );
  43.  
  44. #endif /*COMMENTPDEFS*/
  45.